package com.ticket.sass.common.entity.tenant.enums

import com.baomidou.mybatisplus.annotation.IEnum

enum class OrderPayStatus(private val value: Short, val tips: String) : IEnum<Short> {
    UNPAID(0, "未支付"),
    PAYING(1, "支付中"),
    PAID(2, "已支付"),
    FAIL(3, "支付失败"),
    REFUND_ING(4, "退款中"),
    REFUND_SUCCESS(5, "已退款");

    override fun getValue(): Short {
        return value
    }

    companion object {
        fun valueOf(v: Short) = values().find { it.value == v } ?: error("未匹配到枚举")
    }
}